package com.gzu.emr.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigInteger;
import java.util.Date;

@Schema(description = "病历信息")
public class MedicalRecord {
    private BigInteger id;
    private String number;     //UUID 病历号
    private Integer patientId;
    private Integer doctorId;
    private String priDesc;     //主述
    private String presentIllness;     //现有病
    private String medicalCondition;    //现有病医疗情况
    private String PMH ;            //既往病史
    private String allergy;         //过敏史
    private String healthCheckup;   //体格检查
    private String checkAdvice;   //检查建议
    private String attention;   //注意事项

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;   //体格检查

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getPriDesc() {
        return priDesc;
    }

    public void setPriDesc(String priDesc) {
        this.priDesc = priDesc;
    }

    public String getPresentIllness() {
        return presentIllness;
    }

    public void setPresentIllness(String presentIllness) {
        this.presentIllness = presentIllness;
    }

    public String getMedicalCondition() {
        return medicalCondition;
    }

    public void setMedicalCondition(String medicalCondition) {
        this.medicalCondition = medicalCondition;
    }

    public String getPMH() {
        return PMH;
    }

    public void setPMH(String PMH) {
        this.PMH = PMH;
    }

    public String getAllergy() {
        return allergy;
    }

    public void setAllergy(String allergy) {
        this.allergy = allergy;
    }

    public String getHealthCheckup() {
        return healthCheckup;
    }

    public void setHealthCheckup(String healthCheckup) {
        this.healthCheckup = healthCheckup;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getCheckAdvice() {
        return checkAdvice;
    }

    public void setCheckAdvice(String checkAdvice) {
        this.checkAdvice = checkAdvice;
    }

    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention;
    }

    @Override
    public String toString() {
        return "MedicalRecord{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", patientId=" + patientId +
                ", doctorId=" + doctorId +
                ", priDesc='" + priDesc + '\'' +
                ", presentIllness='" + presentIllness + '\'' +
                ", medicalCondition='" + medicalCondition + '\'' +
                ", PMH='" + PMH + '\'' +
                ", allergy='" + allergy + '\'' +
                ", healthCheckup='" + healthCheckup + '\'' +
                ", checkAdvice='" + checkAdvice + '\'' +
                ", attention='" + attention + '\'' +
                ", date=" + date +
                '}';
    }
}
